import request from '@/utils/request_inv'

// 查询公司公告列表
export function listAnnouncement(query) {
  return request({
    url: '/notify/select/all',
    method: 'get',
    params: query
  })
}

// 查询公司公告详细
export function getAnnouncement(AnnouncementId) {
  return request({
    url: '/announcement/announcement/' + AnnouncementId,
    method: 'get'
  })
}

// 新增公司公告
export function addAnnouncement(data) {
  return request({
    url: '/announcement/announcement',
    method: 'post',
    data: data
  })
}

// 修改公司公告
export function updateAnnouncement(data) {
  return request({
    url: '/announcement/announcement',
    method: 'put',
    data: data
  })
}

// 删除公司公告
export function delAnnouncement(AnnouncementId) {
  return request({
    url: '/announcement/announcement/' + AnnouncementId,
    method: 'delete'
  })
}
